Now we'll use a loop to let the player guess. We'll give player2 five attempts before it's game over!

  • Go to . Drag a Loop with Range inside of the click_sprite() event.
  • Drop Ask inside the loop. Add a prompt that you want the announcer to ask.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)